package com.hancheng.goodscloud.business.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品表 实体类
 *
 * @author 韩诚
 * @date 2025/06/22
 */
@Data
@NoArgsConstructor
@ApiModel("商品表 实体类PO")
@TableName(value = "goods")
public class GoodsPO implements Serializable {

	private static final long serialVersionUID = -1L;

	@ApiModelProperty(value = "商品ID")
    @TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "商品名称")
    @TableField(value = "goods_name")
	private String goodsName;

	@ApiModelProperty(value = "商品编码")
    @TableField(value = "goods_code")
	private String goodsCode;

	@ApiModelProperty(value = "商品价格")
    @TableField(value = "goods_price")
	private BigDecimal goodsPrice;

	@ApiModelProperty(value = "商品数量")
    @TableField(value = "goods_quantity")
	private Integer goodsQuantity;

	@ApiModelProperty(value = "备注")
    @TableField(value = "remark")
	private String remark;

	@ApiModelProperty(value = "创建者用户ID")
    @TableField(value = "create_user_id")
	private Long createUserId;

	@ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
	private Date createTime;

	@ApiModelProperty(value = "更新者用户ID")
    @TableField(value = "update_user_id")
	private Long updateUserId;

	@ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time")
	private Date updateTime;

}